package com.bit.spring.service;

import com.bit.spring.entity.MessageInfo;
import com.bit.spring.mapper.MessageInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    private MessageInfoMapper messageInfoMapper;
    public Integer insertMessage(MessageInfo messageInfo) {
        return messageInfoMapper.insert(messageInfo);
    }

    public List<MessageInfo> getList() {
        return messageInfoMapper.seletAll();
    }
}
